2007-06-10 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkspawn-x11.c (set_environment): Handle child_setup
being NULL. (#445691, Christopher Taylor)
svn path=/trunk/; revision=18097
+2007-06-10 Matthias Clasen <mclasen@redhat.com>
+
+ * gdk/x11/gdkspawn-x11.c (set_environment): Handle child_setup
+ being NULL. (#445691, Christopher Taylor)
+
2007-06-10 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtksearchenginesimple.c: Unconditionally define _GNU_SOURCE
/*
* Set the DISPLAY variable, and then call the user-specified child setup
- * function. This is required so that applications can use gdk_spawn_* and call
- * putenv() in their child_setup functions.
+ * function. This is required so that applications can use gdk_spawn_* and
+ * call putenv() in their child_setup functions.
*/
static void
set_environment (gpointer user_data)
g_setenv ("DISPLAY", setup->display, TRUE);
- setup->child_setup (setup->user_data);
+ if (setup->child_setup)
+ setup->child_setup (setup->user_data);
}
/**